<cfcomponent output="false" persistent="true">

	<cfproperty name="EmployeeID" column="ID" generator="identity" >
    <cfproperty name="FirstName" column="First" >
    <cfproperty name="LastName" column="Last">
    <cfproperty name="MiddleName" column="Middle">
    <cfproperty name="PreferredName" column="PreferredName">
    <cfproperty name="HomePhone" column="HomePhone">
    <cfproperty name="CellPhone" column="CellPhone">
    <cfproperty name="WorkPhone" column="WorkPhone">
    <cfproperty name="WorkPhoneExtention" column="WorkPhoneExt">
    <cfproperty name="PhonePrimaryID" column="PhonePrimaryID">
    <cfproperty name="Email" column="Email">
    <cfproperty name="Address1" column="Address1">
    <cfproperty name="Address2" column="Address2">
    <cfproperty name="City" column="City">
    <cfproperty name="State" column="State">
    <cfproperty name="Zip" column="ZIP">
    <cfproperty name="ContainerID" column="ContainerID" >
    <cfproperty name="PostingID" column="PostingID" >
    <cfproperty name="PositionID" column="PositionID">
    <cfproperty name="SupervisorID" column="SupervisorID" default="-1">
    <cfproperty name="DepartmentID" column="DeptID" default="-1">
    <cfproperty name="BadgeAccessLevelID" column="BadgeAccessLevelID" default="-1">
    <cfproperty name="MirrorAccountID" column="MirrorAccountID" >
    <cfproperty name="DeskPhone" column="DeskPhone">
    <cfproperty name="TimeCardApprs" column="TimeCardApprs">
    <cfproperty name="EstStartDate" column="EstStartDate">
    <cfproperty name="ActStartDate" column="ActStartDate">
    <cfproperty name="Exempt" column="Exempt">
    <cfproperty name="Seasonal" column="Seasonal">
    <cfproperty name="Primary" column="Primary">
    <cfproperty name="SalaryHourlyID" column="SalaryHourlyID">
    <cfproperty name="WorkersCompID" column="WorkersCompID" >
    <cfproperty name="CompTypeID" column="CompTypeID" >
    <cfproperty name="FrequencyID" column="FrequencyID" >
    <cfproperty name="EmployeeCodeID" column="EmpCodeID" >
    <cfproperty name="FullTime" column="FullTime">
    <cfproperty name="HoursPerWeek" column="HoursPerWeek">
    <cfproperty name="PayRate" column="PayRate">
    <cfproperty name="OfferAccepted" column="OfferAccepted">
    <cfproperty name="DOB" column="DOB">
    <cfproperty name="SSN" column="SSN">
    <cfproperty name="I9" column="I9">
    <cfproperty name="MaritalStatusID" column="MaritalStatusID" >
    <cfproperty name="GenderID" column="GenderID">
    <cfproperty name="EthnicID" column="EthnicID">
    <cfproperty name="OrientationNoShow" column="OrientationNoShow">
    <cfproperty name="BadgeID" column="BadgeID">
    <cfproperty name="CostCode" column="CostCode">
    <cfproperty name="Benefits" column="Benifits">
    <cfproperty name="Leave" column="Leave">
    <cfproperty name="LunchID" column="LunchID" <!---fieldtype="one-to-many" cfc="Lunch" fkcolumn="LunchID" joincolumn="LunchID"--->>
    <cfproperty name="NonSCFTypeID" column="NonSCFTypeID">
    <cfproperty name="NonSCFNetworkAccount" column="NonSCFNetworkAccount">
    <cfproperty name="NonSCFBadge" column="NonSCFBadge">
    <cfproperty name="CompanyName" column="CompanyName">
    <cfproperty name="ExpirationDate" column="ExpDate">
    <cfproperty name="BadgePos" column="BadgePos">
    <cfproperty name="ShiftID" column="ShiftID" <!---fieldtype="one-to-many" cfc="Shift" fkcolumn="ShiftID" joincolumn="ShiftID"--->>
    <cfproperty name="Daily" column="Daily">
    <cfproperty name="ADUserID" column="ADUserID">
    <cfproperty name="HRPersonIDNo" column="HRPersonIDNo">
    <cfproperty name="RosettaID" column="RosettaID">
    <cfproperty name="ADGUID" column="ADGUID">
    
	
	<cffunction name="init" access="public" returntype="Employee" output="false">
	    <cfargument name="FirstName" type="string" required="no" default="">
        <cfargument name="LastName" type="string" required="no" default="">
	    
        <cfscript>                        
			setFirstName(arguments.FirstName);	
			setLastName(arguments.LastName);			
			return this;	         
	    </cfscript>
	</cffunction>
    
    
    
    <cffunction name="getFullName" access="public" returntype="string" output="false">        
        <cfscript>                        
            Var FullName = getFirstName() & ' ';
            if( getPreferredName() != ""){
                FullName &= ' (' & getPreferredName() & ') ';
            }
            if( getMiddleName() != ""){
                FullName &= ' ' & getMiddleName() & ' ' ;
            }
            FullName &= getLastName();
            return FullName;             
        </cfscript>
    </cffunction>



</cfcomponent>